{% extends "!layout.html" %}

{% block extrahead %}
<script type="text/x-mathjax-config">
MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
  MathJax.Hub.Insert(MathJax.InputJax.TeX.Definitions.macros,{
    ce: ["Extension","mhchem"],
  });
});
</script>
{% endblock %}

{% block rootrellink %}
  <li><a href="http://rmg.mit.edu/">RMG</a> &raquo;</li>
  <li><a href="{{ pathto('index') }}">{{ release }} Documentation</a> &raquo;</li>
{% endblock %}

{%- block sidebar2 %}
  {%- if render_sidebar %}
  <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
    <div class="sphinxsidebarwrapper">
      {%- block sidebarlogo %}
        <div class="sidebarlogo"><a href="{{ pathto('index') }}">
            <img src="{{ pathto('_static/rmg-logo-small.png', 1) }}" alt="RMG" />
        </a></div>
      {%- endblock %}
      <div id="sidebar">
        <div id="rmgsidebar">
          <a href="http://rmg.mit.edu">
            <div class="menuitem">
              <img src="{{ pathto('_static/rmg-icon.png', 1) }}" class="icon" width="100%"/>
              <div class="menutext menutitle">RMG Website</div>
              <div class="menutext menudesc">Interactive website for RMG-Py</div>
            </div>
          </a>
          <a href="https://github.com/ReactionMechanismGenerator/RMG-Py">
            <div class="menuitem">
              <img src="{{ pathto('_static/github-icon.png', 1) }}" class="icon" width="100%"/>
              <div class="menutext menutitle">RMG GitHub</div>
              <div class="menutext menudesc">View source and post issues</div>
            </div>
          </a>
        </div>
      {%- if sidebars != None %}
        {#- new style sidebar: explicitly include/exclude templates #}
        {%- for sidebartemplate in sidebars %}
        <div class="menuitem">
        {%- include sidebartemplate %}
        </div>
        {%- endfor %}
      {%- else %}
        {#- old style sidebars: using blocks -- should be deprecated #}
        <div class="menuitem">
        {%- include "localtoc.html" %}
        </div>
        <div class="menuitem">
        {%- include "relations.html" %}
        </div>
        <div class="menuitem">
        {%- include "sourcelink.html" %}
        </div>
        <div class="menuitem">
        {%- include "searchbox.html" %}
        </div>
      {%- endif %}
      </div>
    </div>
  </div>
  {%- endif %}
{% endblock %}

{% block footer %}
{{ super() }}
<script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
  try {
    var pageTracker = _gat._getTracker("UA-24556433-3");
    pageTracker._trackPageview();
  } catch(err) {}
</script>
{% endblock %}
